Secure indirect addressing

ABSTRACT

An efficient solution for secure implementation of indirect addressing (IA) is described. IA may be used, for example, in networks of which the routing algorithms are not capable of multicast but also contain very constrained devices that, although requiring multicast, are not capable of repeated unicast. This ID is useful in wireless networks containing low-power low-cost devices.

The invention relates to a method of communicating a communication fragment. The invention further relates to the corresponding sender device, router device, receiver device, system, and signal implementing this method.

In communication networks often the distinction is made between unicast, multicast and broadcast. Unicast is the situation where a single device (the sender device) sends a message to a single other device (the receiver device). In multicast, the sender device sends a message to a number (more than one, but not all) of receiver devices, while in broadcast, the sender device sends a message to all devices in the network.

While nearly all networks contain routing algorithms that support unicast, this is not always the case for multicast. When the routing algorithms do not support multicast and a single device still wants to address several devices, multicast can be achieved by repeated unicast.

However, the sender device might not be able or allowed to do repeated unicast due to, for example, power or cost constraints. An example is a wireless control network used to control lights in large public spaces. Here a single, cheap light switch must be capable of switching more than, say, 50 lights. It is obvious that many more application examples can be found.

A solution to this problem can be found in indirect addressing (IA). where a second device (the router device) is available in the vicinity of the sender device. The sender device will then send a single message to the router device which will subsequently perform repeated unicast.

However, problems are related to the security aspects of IA. For example, the application running on the sender device might want to encrypt its message using a cryptographic key K_(G) known only to members of a group G. Further the sender device might want to apply a Message Integrity Code (MIC) on parts of the communication such as its own address ID1 and the destination address G in the message also using K_(G). The result is that only the members of G (but not the router device) can read the message and receiving devices can verify if indeed the message is intended for them and if it was sent by the sender device ID1.

Communication protocols are commonly described using a layered, OSI-like stack. Part of this stack are, from bottom to top, the physical layer (PHY), the medium access control layer (MAC), the network layer (NWK) and the application layer (APL). Frames exchanged between equal layers on different devices consist of a header and a payload. A frame at level n in the stack is physically sent as the payload of a frame at layer n−1. The abbreviations to identify some of the fields in these headers are as follows: SRC for source address, DEST for destination address, and INF for information field.

A straightforward but inefficient solution to the problem would be to have the application layer compute a MIC on the message, and on its destination address and on its source address using the group key K_(G).

The NWK layer will then also add the NWK-DEST and NWK-SRC addresses, as they are usually required by the routing algorithms. It might further compute an additional MIC on these two NWK addresses. As compared to the solutions given above this will result in more overhead (one or two more addresses) and one additional MIC to be sent which makes this solution less efficient. A second drawback is that the APL level is concerned with verifying address information, a task which more naturally belongs at a lower layer.

It is therefore an object of the invention to provide a method that improves the efficiency of indirect addressing while providing security.

This object is realized by a method of communicating a communication fragment, with reference to FIG. 2, the communication fragment comprising a first target address reference referring to a group of at least one receiver device 201, comprising the steps of: —protecting means 221 of the sender device adding a cryptographic message integrity code to protect at least part of the communication fragment, —transmitting means 222 of the sender device transmitting the protected communication fragment 211 to a router device 202, —the router device receiving means 223 of the router device receiving the communications fragment, modifying means 224 of the router device, for at least one receiver device in the group of target devices, modifying the first target address reference into an address of the at least one receiver device, while maintaining the unchanged cryptograph message integrity code, and subsequently forwarding the modified protected communication fragment 212 to the at least one receiver device 203, 204, 205, —receiving means 226 of the at least one receiver device receiving the modified protected communication fragment, —restoring means 227 of the at least one receiver device restoring the original protected communication fragment in order to allow verification means 228 of the at least one receiver to verify the original protected communication fragment using the message integrity code.

For security reasons, the addressing information should be protected with a MIC using the key K_(G). However, the router device should be able to change the addressing information in order to do repeated unicast. Obviously, since G is protected by the MIC, it cannot simply be substituted by a target address to do repeated unicast: when the receiver device receives the communication fragment with the substituted address and it checks the MIC, it will find a mismatch because the protected information should contain G and not the receiver device ID. As a result, it will probably ignore the message.

The sender device therefore indicates the usage of indirect addressing by for example setting a special IA bit field in the message. (Alternatively, the router device may indicate the usage of indirect addressing by for example setting a special IA bit field in the message, after detecting, for example because the target address is a group identity, that indirect addressing is used). The addresses MAC-DEST and MAC-SRC indicate that a message is sent from ID1 to ID2. The addresses NWK-DEST and NWK-SRC indicate that the final destination of the message is all the members in G (possibly except ID1 itself) and that the message was sent by ID1. The NWK-INF field further indicates that the message is used in the context of indirect addressing (IA=1) and the application on ID1 encrypted the string m using the group key K_(G) (indicated by E_(KG)(m)).

On receipt of the message from the sender device, the router device notices that it is an IA message by inspecting the IA bit in the NWK-INF field and it will perform a multiple unicast to all the members of group G (possibly except the sender device ID1). From its routing information (e.g. routing tables), the router device knows that a way to reach the receiver device is sending it to intermediate nodes. The router changes, for each receiver device, the NWK-DEST field from the entry G to the address of the receiver device ID, as intermediate hops are not aware of a group identity G and the unicast routing algorithms need a single, known device address as a final destination. Note further that, because of the replacement, the MIC and the protected information are no longer consistent. The receiver device upon receiving the message will replace the modified information, for example the receiver device ID by the group ID, and is subsequently able to verify the MIC. The receiver device should know the identity of all devices in G in order to perform this action. An alternative solution is that the sender device or the router device copies the group identity G somewhere in the communication fragment, for example in the NWK-INF field in the NWK frame. This way the receiver devices do not have to store the link between device identities and group identities and they can still substitute the group identity in the NWK-DEST field before verifying the MIC. In addition, multiple overlapping groups are supported in this manner.

The advantage of this solution is that the sender device only requires storing a very limited amount of information, and sending very short and few communication fragments. The activities of the router device (ID2) and intermediate hops are independent of the fact if the message by the sender device (here ID1) is secured or not. Only the group members and (of course) the router device need to be aware of indirect addressing; the intermediate nodes between the router device and the receiver devices are not aware of the indirect addressing mode. The router device need not be trusted with application data.

An advantageous implementation of a method according to the present system uses a single bit field IA to indicate the use of the indirect addressing mode, which is simple and efficient.

An advantageous implementation of a method according to the present system uses a single common key both to encrypt the message content and to generate or verify the MIC results in an efficient implementation.

In an advantageous implementation of a method according to the present system, a receiver device attempts multiple substitutions of the target address reference by the groups the receiver device is a member of. This way, the receiver device is able to find the group identity for which the MIC matches. This alleviates the need to add the group identity in the communication fragment, therefore optimizing the communication fragment length.

An advantageous implementation of a method according to the present system allows the receiver device to restore the communication fragment without local information or without having to perform multiple attempts to find the matching group identity by storing or copying the original first target address reference into the modified protected communication fragment.

The sender device, router device, receiver device, system, and signal according to the invention are characterized as described in claims 7-11.

These and other aspects of the invention will be further described by way of example and with reference to the schematic drawings in which:

FIG. 1 shows an exploded view of a message at the MAC layer for a four-layer protocol stack,

FIG. 2 shows a schematic example of indirect addressing,

FIG. 3 shows a detailed example of indirect addressing, and

FIG. 4 shows the message formats on the MAC level during indirect addressing

Throughout the figures, same reference numerals indicate similar or corresponding features. Some of the features indicated in the drawings are typically implemented in software, and as such represent software entities, such as software modules or objects.

Communication protocols are commonly described using a layered, OSI-like stack. An example stack comprises, from bottom to top, the physical layer (PHY), the medium access control layer (MAC), the network layer (NWK) and the application layer (APL). Frames exchanged between equal layers on different devices consist of a header and a payload and a frame at level n in the stack is physically sent as the payload of a frame at layer n−1. Thus, considering the top three layers in this four-layer protocol stack, FIG. 1 illustrates a message 100 sent by the MAC layer.

In many cases there is a close relation between the addresses at the APL layer and at the NWK layer which makes it possible to leave out duplicated address information in the APL layer in order to arrive at an efficient solution. Address information at the NWK layer can usually not be omitted because it is required by the routing algorithms. Because the APL addresses are usually equal to the NWK addresses or can be derived easily, they are not always present in order to reduce the size of the message.

The INF fields contain information for a receiving device on the different layers on what kind of information is present in the rest of the message and how it should be treated. For example, the MAC-TNF field might indicate that the MAC-PAYLOAD is encrypted. This will show to the receiving device that it must first decrypt the payload before dealing with it further. Also, the NWK-INF field might indicate that the received frame is generated in the context of indirect addressing and should be treated accordingly.

Indirect addressing is schematically depicted in FIG. 2. ID1, sender device 201, member of the group G={ID1, ID3, ID4, ID5}, sends a message 211 containing the final destination address G, its own address ID1 and a string m (i.e. the actual information to be sent to the group) to ID2, the router device 202. When ID2 receives the message and notices that the message coming from ID1 is intended for the group G, it will forward the message to ID3 203, ID4 204 and ID5 205 whose addresses it found in, for example, a pairing table 212.

As a security measure, the application running on ID1 generating the string m, might want to encrypt m using a cryptographic key K_(G) known only to members of G. Further it might want to apply a Message Integrity Code (MIC) on its own address ID1 and the destination address G in the message also using K_(G). The result of these security measures is that only the members of G (but not the router device) can read the message and receiving devices can verify if indeed the message is intended for them and if it was sent by ID1.

As the router device ID2 is not trusted by ID1, ID2 has no access to the key K_(G). However, the router node should be able to change the addressing information on the NWK level in order to perform repeated unicast. Since G is protected by the MIC, it cannot simply be substituted by ID3, ID4 and ID5 to do repeated unicast: when the receiving devices ID3, ID4 and ID5 check the MIC, they will find a mismatch because the protected information should contain G and not ID3, ID4 or ID5, respectively. As a result, they will ignore the message.

As illustrated in FIG. 3, ID1 knows the cryptographic group key K_(G), the identity of the group G (but not necessarily the addresses of all the group members) and the address of its router device ID2. Router device ID2 knows or is able to retrieve the addresses of all the members of G.

ID1 sends the message 311 to the router ID2 302 that, on the MAC level, will look like the message 401 in FIG. 4 where, as compared to FIG. 1, fields that are not relevant in the current explanation are omitted for clarity. The addresses MAC-DEST and MAC-SRC indicate that a message is sent from ID1 to ID2. The addresses NWK-DEST and NWK-SRC indicate that the final destination of the message is all members of G (possibly except ID1 itself) and that the message was sent by ID1. The NWK-INF field further indicates that it concerns a message in the context of indirect addressing (IA=1) and the application on ID1 encrypted the string m using the group key K_(G) (indicated by E_(KG)(m)) in APL-PAYLOAD. A dark gray background in a message means that its content is protected by a MIC using K_(G). As an alternative solution, the application on the sender device ID1 can decide not to encrypt m but only do add a MIC. In this case, E_(KG)(m) in message 401 will be replaced by m.

On receipt of the message from sender device ID1 301, router device ID2 302 notices that it is an IA message by inspecting the IA bit in the NWK-INF field and it will perform a multiple unicast to all the members of G 303,304,305 (again, possibly except ID1). In an alternative implementation, on receipt of a message from a sender device, the router device, rather than checking the IA bit in the NWK-INF field, can also check the NWK-DEST field to conclude that the sender device sent an IA message.

Subsequently, the router device substitutes in the NWK-DEST field the value G by ID3, ID4 and ID5, respectively, hereby ignoring the resulting inconsistency between the information protected by the MIC and the MIC itself. The router is allowed to make other modifications to the protected information as long as the receiver devices are capable of undoing the modifications before verifying the MIC.

As an example, the unicast message from ID2 to ID4 is described. From its routing information (e.g. routing tables), ID2 knows that a way to reach ID4 is sending it to ID7 after which multiple hops might follow, as indicated in FIG. 3. The message ID2 sends to ID7 on the MAC level will then look like message 402 in FIG. 4. In the NWK-DEST field the entry G is replaced by ID4, because intermediate hops are not aware of a group identity G and the unicast routing algorithms need a single, known device address as a final destination. Because of this replacement, the MIC and the protected information are no longer consistent which is indicated by the striped/light gray background of the NWK-DEST field.

After possibly more hops, a message 313 finally ends up at ID4. If the one but last hop address was ID8 (see FIG. 3), the message looks like message 403. If ID4 knows the identity of all devices in G it can receive a message from (indicated by ID1→{G} in FIG. 3), then, by inspecting the NWK-SRC field in the received message, ID4 can obtain the group identity G. Before verifying the MIC on the message using K_(G), it will replace ID4 in the NWK-DEST field by G.

Although this solution is very efficient in simple situations, there will be problems in more complicated situations. It might be, for example, that both ID1 and ID4 are a member of G but also of a different group G′ in which ID1 is also a sender device. Upon receipt of a message, ID4 is not sure if it should replace ID4 in the NWK-DEST field by G or by G′ because it will have stored ID1→{G, G′}. Clearly ID4 can try all the group identities in the list belonging to ID1 until a recomputed MIC matches the MIC in the message. An alternative solution is that ID copies the group identity G in the NWK frame, for example in the NWK-INF field. This way the receiver devices do not have to store the link between device identities and group identities and they can still substitute the group identity in the NWK-DEST field before verifying the MIC. The cost is that in this case, the messages to be sent will be longer.

As an alternative solution to storing G in the NWK frame, the receiver device can attempt multiple substitutions of the target address reference by the groups the receiver device and sender device are a member of. This way, the receiver device is able to find the group identity for which the MIC matches. This alleviates the need to add the group identity in the communication fragment, therefore optimizing the communication fragment length.

The advantages of the method according to the invention are as summarized below. The sender device only requires storing a very limited amount of information. The activities of the router device (ID2) and intermediate hops are independent of the fact if the message by the sender device (here ID1) is secured or not. Only the group members and (of course) the router device are aware of a group G. There is only one bit overhead in the messages (the IA bit in the NWK-INF field). The receiver devices have to store the links between device IDs and group IDs, which can be done efficiently. The router device need not be trusted with application data.

It is clear to a person skilled in the art that minor modifications to the solutions presented above still constitute the same solutions.

For example, to further reduce the size of the message from sender device ID1 to router device ID2, the identity of the router (ID2) might be omitted if it is clear from context. Receiving a message from ID1, the router might deduce from context that it must forward the message to the group G. This reduces even further the required amount of storage on the sender device and the length of the message to be sent by the sender device.

As a second example, to further reduce the size of the message from sender device ID1 to router device ID2, the sender device identity ID1 can be omitted from the group definition on the router device (here G={ID1,ID3,ID4,ID5}), if the router device is only acting as router for a single device in G (in this case ID1),

Alternatives are possible. In the description above, “comprising” does not exclude other elements or steps, “a” or “an” does not exclude a plurality, and a single processor or other unit may also fulfill the functions of several means recited in the claims. 

1. A method of communicating a communication fragment, the communication fragment comprising a target group address referring to at least two receiver devices, the method comprising acts of: a sender device adding a cryptographic message integrity code forming a protected communication fragment to protect at least part of the communication fragment, wherein the cryptographic message integrity code is at least partly based on the target group address; the sender device transmitting the protected communication fragment to at least one receiver device through use of a router device that is not part of a trusted group to which the sender device and the at least one receiver device belong; the router device, for the at least one receiver device referred to in the target group address, replacing the target group address with an address of the at least one receiver device forming a modified protected communication fragment, while maintaining the unchanged cryptograph message integrity code, and subsequently forwarding the modified protected communication fragment to the at least one receiver device; the at least one receiver device receiving the modified protected communication fragment; and the at least one receiver device restoring the original protected communication fragment by replacing the address of the at least one receiver device with the target group address to allow verification of the protected communication fragment using the message integrity code.
 2. The method according to claim 1, wherein the communication fragment comprises a bit field IA to indicate whether indirect addressing is used.
 3. The method according to claim 1, comprising an act of sharing with the sender device and the at least one receiver device, a common cryptographic key which is not shared with the router, and where the cryptographic message integrity code is computable and verifiable only by using the common cryptographic key.
 4. The method according to claim 3, wherein the common cryptographic key is used to encrypt the message content.
 5. The method according to claim 1, wherein the act of restoring the protected communication fragment comprises an act of replacing the address of the at least one receiver device with each of a plurality of group identities that include the sender device to determine which of the plurality of group identities the message integrity code matches.
 6. The method according to claim 1, wherein the act of replacing the target group address comprises an act of storing the target group address in the modified protected communication fragment, and wherein the act of restoring the original protected communication fragment comprises an act of restoring the protected communication fragment using the stored first target address reference in the modified protected communication fragment in order to allow verification of the message integrity code.
 7. A sender device being arranged to transmit a communication fragment through a router device towards a receiver device, the communication fragment comprising a target group address referring to at least two receiver devices, the sender device comprising: protecting means being arranged to add a cryptographic message integrity code to protect at least part of the communication fragment, wherein the cryptographic message integrity code is at least partly based on the target group address and a cryptographic key; and transmitting means being arranged to transmit the communication fragment to a receiver device through a router device that is not able to modify the cryptographic message integrity code, that does not have access to the cryptographic key, and that is not part of a trusted group to which the sender device and the at least two receiver devices belong.
 8. A router device being arranged to route a communication fragment from a sender device towards a receiver device, the communication fragment comprising a target group address referring to at least two receiver devices, the router device comprising: receiving means being arranged to receive the communication fragment comprising a cryptographic message integrity code that is at least partly based on the target group address; modifying means being arranged to modify the communication fragment, by replacing the target group address by a reference referring to one of the at least two receiver devices, while maintaining the original cryptographic message integrity code without use of a cryptographic key related to the cryptographic message integrity code and without being a part of a trusted group to which the sender device and the at least one receiver device belong; and transmitting means being arranged to transmit the modified communication fragment to the one of the at least two receiver devices.
 9. A receiver device being arranged to receive a modified communication fragment originating from a transmitter device through a router device, the modified communication fragment being derived from a communication fragment comprising a target group address referring to at least two receiver devices, the receiver device comprising: receiving means being arranged to receive the modified communication fragment sent by the transmitter device through the router device, wherein the router device is not part of a trusted group to which the transmitter device and the at least two receiver devices belong; restoring means being arranged to restore the communication fragment that was used to compute a cryptographic message integrity code included in the modified communication fragment that is at least partly based on the target group address by replacing an address of the receiver device with the target group address; and verification means being arranged to verify the cryptographic message integrity code.
 10. The receiver device according to claim 9, wherein the transmitter device and the receiver device share a common cryptographic key which is not shared with the router, and where the cryptographic message integrity code is computable and verifiable only by using the common cryptographic key.
 11. The receiver device according to claim 10, wherein the common cryptographic key is used to encrypt the message content.
 12. The receiver device according to claim 9, wherein the receiver device is arranged to restore the communication fragment by replacing the address of the receiver device with each of a plurality of group identities that include the transmitter device to determine which of the plurality of group identities the cryptographic message integrity code matches. 